<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加住户信息</title>
<script type="text/javascript">
function checkEmpty(){
	if(document.getElementById("houseStreet").value=='' || 
	document.getElementById("houseBuild").value=='' || 
	document.getElementById("houseNumber").value=='')
	{
		alert("请填写带*号的");
		return false;
	}
}
</script>
</head>

<body>
<table width="100%" height="100%">
<tr>
	<td valign="top" height="100">
		<s:if test="%{role==0}">
			<jsp:include page="../readhead.jsp"/>
		</s:if>
		<s:elseif test="%{role==1}">
			<jsp:include page="../writehead.jsp"/>
		</s:elseif>
		<s:elseif test="%{role==2}">
			<jsp:include page="../head.jsp"/>
		</s:elseif>
	</td>
</tr>
</table>

<div id="">
	<s:a href="gotoimportAction">导入excel文件</s:a>
</div>

<div id="addiInfo">
<s:form action="addInfoAction" method="post" onsubmit="return checkEmpty();">
	<s:textfield     label="* 楼盘名称"   id="houseBuild" name="info.houseSet" />
	<s:textfield     label="* 楼栋"   id="houseBuild" name="info.houseBuild" />
	<s:textfield     label="* 房号"   id="houseNumber" name="info.houseNumber" />
	<s:textfield     label="  业主姓名"   id="holderName" name="info.holderName" />
	<s:textfield     label="  联系电话1"   id="holderPhone1" name="info.holderPhone1" />
	<s:textfield     label="  联系电话2"   id="holderPhone2" name="info.holderPhone2" />
	<s:textfield     label="  电子邮件"   id="holderEmail" name="info.holderEmail" />
	<s:textfield     label="  收件人姓名"   id="receiverName" name="info.receiverName" />
	<s:textfield     label="  联系地址"   id="receiverAddress" name="info.receiverAddress" />
	<s:textfield     label="  证件号码"   id="holderIdno" name="info.holderIdno" />
	<s:textfield     label="  年"   id="year" name="info.year" />
	<s:textfield     label="  月"   id="month" name="info.month" />
	<s:textfield     label="  日"   id="day" name="info.day" />
	<s:textfield     label="  农历(月)"   id="monthyin" name="info.monthyin" />
	<s:textfield     label="  农历(日)"   id="dayyin" name="info.dayyin" />
	<s:textfield     label="  建筑面积(平米)"   id="houseArea" name="info.houseArea" />
	<s:textfield     label="  装修类型(毛坯/装修)"   id="houseDectype" name="info.houseDecType" />
	<s:textfield     label="  是否万科员工(是/否)"   id="isVanker" name="info.isVanker" />
	<s:textfield     label="  是否空置(是/否)"   id="houseFreed" name="info.houseFreed" />
	<s:textfield     label="  是否为出租房(是/否)"   id="houseLeted" name="info.houseLeted" />
	<s:textfield     label="  是否为二手房(是/否)"   id="houseUsed" name="info.houseUsed" />
	<s:textfield     label="  是否为投资客(是/否)"   id="isInvestor" name="info.isInvestor" />
	<s:textfield     label="  房修重点业主"   id="FXfocus" name="info.FXfocus" />
	<s:textfield     label="  重点投诉业主"   id="KFfocus" name="info.KFfocus" />
	<s:textfield     label="  物业重点业主"   id="WYfocus" name="info.WYfocus" />
	<s:textfield     label="  是否发生过法律纠纷"   id="lawIssue" name="info.lawIssue" />
	<s:textfield     label="  优乐卡号"   id="youleCardNo" name="info.youleCardNo" />
	<s:textfield     label="  优乐卡积分"   id="youleCardScore" name="info.youleCardScore" />
	<s:textfield     label="  优乐社区用户"   id="youleCommunity" name="info.youleCOmmunity" />
	<s:textfield     label="  社团成员"   id="collegeMember" name="info.collegeMember" />
	<s:textfield     label="  楼盘属性"   id="houseSetPro" name="info.houseSetPro" />
	<s:textfield     label="  签约时间"   id="contractedTime" name="info.contractedTime" />

	<s:iterator value="columnList" status="status">
		<s:textfield label="%{cname}(%{pname})"  name="%{'columnList['+#status.index+'].value'}" />
		<s:hidden value="%{pname}" name="%{'columnList['+#status.index+'].pname'}"/>
		<s:hidden value="%{cname}" name="%{'columnList['+#status.index+'].cname'}"/>
		<!--<s:textfield label="%{cname}(%{pname})" value="asdfsadf" name="%{'testList['+#status.index+'].value'}"/>-->
	</s:iterator>
	<!-- <s:iterator value="columnList">
		<s:textfield id="value" label="%{cname}(%{pname})" name="value"/>
	</s:iterator> -->
	<s:submit value="提交"/>
</s:form>
<!-- another method
<s:property value="test"/>
<s:iterator value="#request.comment" id="columnValue">
	<s:property value="name"/>:<s:property value="value"/><br/>
</s:iterator>
 -->
</div>

</body>
</html>